<%--

    Copyright (C) 2010 Neofonie GmbH

    This programm is free software; you can redistribute it and/or modify
    it under the terms of the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

--%>

<%@ include file="../include/common_jsp_header.jsp"%>
<c:set var="currentSubSite" value="Edit Topic" />

<html>
<head>
<%@ include file="../include/html_head.jsp"%>
</head>

<body>

<div id="site-wrapper" class="container">
  <%@ include file="../include/page_header.jsp"%>

  <span class="span-17">
    <hr/>
    <h2>Create a new topic</h2>
    <form:form commandName="topic" action="save.html" method="post" acceptCharset="UTF-8">
      <fieldset>
        <div>
          <label for="topic"><fmt:message key="topic.create.topic"/>:</label>
          <form:input path="topic" />
          <form:errors path="topic" cssClass="error"/>
        </div><br/>
        <div>
          <label for="queries"><fmt:message key="topic.create.queries"/>:</label>
          <form:input path="queries" />
          <form:errors path="queries" cssClass="error"/>
        </div><br/>
        <div>
          <input type="submit" value="save" />
          <input type="submit" value="cancel" name="cancel"/>
        </div>
      </fieldset>
    </form:form>

    <%@ include file="topic_menu.jsp"%>
  </span>
  <span class="span-7 last">
    <hr/>
    <h2>Help</h2>
    To create a new topic, give it a topic name and add the query term you would like to use to track that topic.
    Query terms are combined with "OR" before being sent to twitter for tracking.
  </span>
  <hr/>


</div>
</body>

</html>
